#include "Stack.h"

void STTest()
{
	ST st;
	STInit(&st);
	//////////////////
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);

	//循环出栈
	while (!StackEmpty(&st))
	{
		STDataType data = StackTop(&st);
		printf("%d ", data);
		//出栈
		StackPop(&st);
	}

	/////////////////
	STDestroy(&st);
}

int main()
{
	STTest();


	return 0;
}